/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-17 14:00:29  
 * Copyright (c) 2015- -版权所有     
 */
package com.joysuch.wwyt.edu.service;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import com.joysuch.wwyt.edu.bean.*;
import com.joysuch.wwyt.edu.entity.EduTrainningPlan;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

import static com.joysuch.wwyt.edu.bean.EduTrainningPlanListBean.SearchEduTrainningPlan;

public interface EduTrainningPlanService {

    public EduTrainningPlan add(EduTrainningPlanEditBean entity);

    void update(EduTrainningPlanEditBean entity);

    Page<EduTrainningPlanListBean> findByPage(Pageable page,SearchEduTrainningPlan condition);

    void delete(Long id) throws BusinessRestrictionsException;

    EduTrainningPlanDetailBean getById(Long id);

    EduTrainningPlan findById(Long id);

    ResultBean eduTrainQuery();

    void updateTrainStatus(Long planId);

    List<Map<String,Object>> findByMyPage();

    ResultBean findByMyAllPage(Pageable page, String status,Integer state);

    EduTrainingPlanDetailVo findDetail(Long trainingPlanId);

    Page<EduTrainningPlanStatisticsVo> findStatisticsPage(Pageable page, EduTrainningPlanStatisticsVo.SearchTrainningPlan condition);

    void planExport(EduTrainningPlanStatisticsVo.SearchTrainningPlan condition, HttpServletRequest request, HttpServletResponse response);
}
